/*
 * HttpAuthentication.h
 */

#ifndef HTTPAUTHENTICATION_H_
#define HTTPAUTHENTICATION_H_

#include <iostream>

class HttpHost;
class HttpRequest;
class HttpResponse;
class ServerConfig;

class HttpAuthentication {
	private:
		const HttpRequest& request;
		const ServerConfig& serverConfig;
		static const std::string base64IndexTable;
		std::string base64Decode(const std::string& cadena);
	public:
		HttpAuthentication(const HttpRequest& msg, const ServerConfig& svCfg);
		virtual ~HttpAuthentication();

		bool isAuthenticated();
};

#endif /* HTTPAUTHENTICATION_H_ */
